package com.kudian.restful.entity;

import java.sql.Timestamp;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * AppVersion entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "app_version")
public class AppVersion implements java.io.Serializable {

	// Fields

	private Integer appid;
	private Integer phoneSys;
	private String curVer;
	private Timestamp addTime;
	private Short appType;

	// Constructors

	/** default constructor */
	public AppVersion() {
	}

	/** full constructor */
	public AppVersion(Integer phoneSys, String curVer, Timestamp addTime,
					  Short appType) {
		this.phoneSys = phoneSys;
		this.curVer = curVer;
		this.addTime = addTime;
		this.appType = appType;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "appid", unique = true, nullable = false)
	public Integer getAppid() {
		return this.appid;
	}

	public void setAppid(Integer appid) {
		this.appid = appid;
	}

	@Column(name = "phone_sys", nullable = false)
	public Integer getPhoneSys() {
		return this.phoneSys;
	}

	public void setPhoneSys(Integer phoneSys) {
		this.phoneSys = phoneSys;
	}

	@Column(name = "cur_ver", nullable = false, length = 20)
	public String getCurVer() {
		return this.curVer;
	}

	public void setCurVer(String curVer) {
		this.curVer = curVer;
	}

	@Column(name = "add_time", nullable = false, length = 19)
	public Timestamp getAddTime() {
		return this.addTime;
	}

	public void setAddTime(Timestamp addTime) {
		this.addTime = addTime;
	}

	@Column(name = "app_type", nullable = false)
	public Short getAppType() {
		return this.appType;
	}

	public void setAppType(Short appType) {
		this.appType = appType;
	}

}